package com.dingwen.wcrtst.entity;

import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Tolerate;

import java.io.Serializable;

/**
 * User实体
 *
 * @author dingwen
 * 2021.05.08 10:32
 */
@Getter
@Setter
@ToString
@Builder
public class User implements Serializable {
    private static final long serialVersionUID = 7063683034779793234L;
    private String id;
    private String password;

    // 使用Builder时，没有生成无参构造器。在进行json序列化时会报错。使用此注解解决冲突
    @Tolerate
    public User(){

    }

}
